package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Department;
import com.example.demo.mapper.DepartmentMapper;
import com.example.demo.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServicelmpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {
    public List<Department> listAllDepartments(){
        return baseMapper.selectList(null);
    }
}


